package com.fishery.refrigeratory.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.refrigeratory.entity.RefrigeratoryPrepareEnter;
import com.fishery.refrigeratory.entity.vo.RefrigeratoryPrepareEnterVo;

import java.util.List;

public interface RefrigeratoryPrepareEnterService extends IService<RefrigeratoryPrepareEnter> {

    //通过产品名称查看待入库信息
    List<RefrigeratoryPrepareEnter> getRefrigeratoryEnterByName(String produceName);

    //获取基地名称
    String getRefrigeratoryEnterByProductId(String id);

    //分页查看所有待入库信息
    Page<RefrigeratoryPrepareEnter> getPageAllRefrigeratoryEnter(Integer page, Integer size);

    //指定待入库数量部分加入到其对应冷库
    int enterRefrigeratory(RefrigeratoryPrepareEnterVo refrigeratoryPrepareEnterVo);
}
